package com.shouhe.mysap.common;

import lombok.Data;

import java.util.List;

/**
 * @author 守鹤
 * @date 2020/5/31 21:04
 */
@Data
public class PageResult {
    private Long total;
    private List<?> rows;

    public static PageResult getInstance(Long total,List<?> list){
        PageResult result = new PageResult();
        result.setRows(list);
        result.setTotal(total);
        return result;
    }
}
